package lab01;

import java.util.Scanner;

public class Main {

	
	public static void main(String[] args) 
            {		
                first();
            }
        
        public static void first()
            {
                Scanner word = new Scanner(System.in);
		Scanner money = new Scanner(System.in);
		Scanner integer = new Scanner(System.in);
                
                for (int x=1; x<2;)
		{
			System.out.print("Enter Product Name: ");
			String inputPN = word.nextLine();
			System.out.print("Enter Product Price: ");
			double inputPP = money.nextDouble();
			
			report(inputPN, inputPP);
			
			int loop;
			System.out.print("Stop Program? ");
			loop = integer.nextInt();
			
			if (loop == 1) 
				{
					x=2;
				}
		}
            }

	public static void report(String pn, double pp) {
		Product a1 = new Product(pn, pp);
		
			System.out.println("-----------------------------------");
			System.out.println("Product Name: " + a1.getProductName());
			System.out.println("Product Price: " + a1.getProductPrice());
			System.out.println("-----------------------------------");
	}




}
